import { createApp } from 'vue'
import App from '/@/App.vue'


import router from '/@/router/index'

import '/@/assets/css/index.css'

import 'virtual:windi.css'
import 'nprogress/nprogress.css'
import 'virtual:svg-icons-register'
// import 'lib-flexible/flexible.js'
// import Vconsole from "vconsole"
// new Vconsole()
import "/@/assets/js/iosInput"
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { registerDirectives } from '/@/assets/js/globalMethods/install'; 
import 'vant/es/toast/style'
import 'vant/es/dialog/style'

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)

app.use(pinia)
app.use(router)
// for (const [key, component] of Object.entries(ElIcons)) {
//     app.component(key, component)
// }
// 注册自定义指令  
registerDirectives(app);  
app.mount('#app')
